-- GENERATED SPELL FOR [Venture Co. Excavator] --


function spell0_28123(pUnit, Event) --@Piercing Blow,Self--
pUnit:FullCastSpellOnTarget(49749,pUnit)
pUnit:RegisterEvent('Sorts_28123', 595, 1)
end

function Sorts_28123(pUnit, Event)
local choix_sorts_28123 = math.random(0, 0)
if choix_sorts_28123 == 0 then
pUnit:RegisterEvent('spell0_28123', 1, 1)
end
end

function mob28123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28123', math.random(1500, 3000), 1)
end

function mob28123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28123, 1, 'mob28123_Action')
RegisterUnitEvent(28123, 2, 'mob28123_Leave')
RegisterUnitEvent(28123, 3, 'mob28123_Kill')
RegisterUnitEvent(28123, 4, 'mob28123_Die')
